projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f02c93a
)
* src/xdisp.c (move_it_to): Fix last change. (Bug#46316)
author
Eli Zaretskii
<eliz@gnu.org>
Sun, 14 Feb 2021 20:11:05 +0000
(22:11 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sun, 14 Feb 2021 20:11:05 +0000
(22:11 +0200)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index a1956824214771e79019b4f430909c507db409a4..f86d3527b3d747e739a510ddf084a80e4afb1b76 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-10051,7
+10051,8
@@
move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
if ((op & MOVE_TO_POS) != 0
&& (IT_CHARPOS (*it) > to_charpos
|| (IT_CHARPOS (*it) == to_charpos
- && to_charpos == ZV)))
+ && to_charpos == ZV
+ && FETCH_BYTE (ZV_BYTE - 1) != '\n')))
{
reached = 9;
goto out;